package com.pojo.req.permission;

import com.pojo.resp.BaseResp;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UpdatePermission extends BaseResp {


    /**
     * 菜单id
     */
    @NotNull(message = "菜单为必填项")
    private Long templateId;

    /**
     * 菜单权限
     */
    @NotBlank(message = "菜单权限必填项")
    @Length(max = 125,message = "菜单权限只允许1~125个字符")
    private String permissionLabel;

    /**
     * 菜单描述
     */
    @NotBlank(message = "菜单描述必填项")
    @Length(max = 125,message = "菜单权限只允许1~255个字符")
    private String permissionName;
}
